package com.ls.service.user;

import com.ls.pojo.User;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 * @author 李朔
 * @version 1.0
 */
public interface UserService {
    //用户登录
    public User login(String userCode,String password) throws ClassNotFoundException, SQLException;
    //根据用户id修改密码
    public boolean updatePwd( int id, String password) throws SQLException;
    //查询记录数
    public int getUserCount(String username,int userRole) throws ClassNotFoundException, SQLException;
    public List<User> getUserList(String queryUserName, int queryUserRole, int currentPageNo, int pageSize) throws SQLException;
    //添加用户
    public boolean addUser(User user) throws SQLException;

    public User selectUserCodeExist(String userCode) throws SQLException;
}
